package com.gzu.se.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName("users")
public class Users {
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING) // 序列化为字符串
    private Long id;

    private String account;
    private String username;
    private String password;

    private String email;
    private String address;

    // 新增 role 字段
    private String role; // 角色信息，例如 admin、user 等
}
